package shop.cart.service;


import com.baomidou.mybatisplus.extension.service.IService;
import shop.common.entity.Cart;

import java.util.List;

public interface CartService extends IService<Cart> {


    Cart details(String id);

    List<Cart> listByUserId(String userId);

    boolean increase(String userId,String productId);

    boolean decrease(String userId,String productId);

    boolean clearByUserId(String userId);

    void select(String id);

    boolean removeByUserIdAndProductId(String userId, String productId);
}
